<?php 
if(isset($sales[0]['sku'])){
foreach ($sales as $sale){ ?>
           <tr>
           		  <td><?php echo $sale['sku'];?></td>
                  <td><?php echo $sale['sku_name'];?></td>
                  <td><?php echo $sale['daysales'];?></td>
                  <td><?php echo $sale['daysales7'];?></td>
                  <td><?php echo $sale['daysales14'];?></td>
                  <td><?php echo $sale['daysales21'];?></td>
                  <td><?php echo $sale['daysales28'];?></td>
                  <td><?php echo $sale['purchase_price'];?></td>
                  <td><?php echo $sale['min_purchase_price'];?></td>
           </tr>
<?php }}?>
<tr  class="remove" >
      <td colspan="8">
      	<div class="mypage">
      		<div style="text-align: center;">查询结果总计:<span class="num"><?php echo $totles?></span>条</div>
     	</div>
     </td>
</tr>
